<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('news', function (Blueprint $table) {
            $table->increments('n_id');
            $table->integer('catid');
            $table->string('n_title',100);
            $table->text('n_info');
            $table->string('n_author',30);
            $table->integer('n_addtime');
            $table->integer('n_type');
            $table->integer('n_count');
            $table->string('keywords',100);
            $table->string('n_url',200);
            $table->string('n_pic',100);
            $table->integer('n_updatetime');
            $table->integer('n_hits');
            $table->integer('isrecom');
            $table->integer('orderid');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('news');
    }
}
